/* 使用TDesign设计系统变量 */
@import '/variable.less';
/* 使用TDesign设计系统变量 */
page {
  font-size: var(--td-font-size-base, 28rpx);
  background-color: var(--td-bg-color-page, @gray-color-1);
  font-family: var(--td-font-family, PingFang SC, Microsoft YaHei, Arial Regular);
  line-height: 1.5;
}

.container {
  // padding: var(--td-spacer-2, 32rpx);
  padding-bottom: 200rpx;
}

.card {
  background: var(--td-bg-color-container, @font-white-1);
  // border-radius: var(--td-radius-extraLarge, 24rpx);
  padding: var(--td-spacer-2, 32rpx);
  margin-bottom: var(--td-spacer-1, 24rpx);
  box-shadow: var(--td-shadow-1, 0 1px 10px rgba(0, 0, 0, 5%), 0 4px 5px rgba(0, 0, 0, 8%), 0 2px 4px -1px rgba(0, 0, 0, 12%));
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--td-spacer-1, 24rpx);
  padding-bottom: var(--td-spacer-1, 24rpx);
  border-bottom: 1rpx solid var(--td-border-level-1-color, @gray-color-3);
}

.card-title {
  font-size: var(--td-font-size-m, 32rpx);
  font-weight: 600;
  color: var(--td-text-color-primary, @font-gray-1);
  font-family: var(--td-font-family-medium, PingFang SC, Microsoft YaHei, Arial Medium);
}

.card-action {
  color: var(--td-brand-color, @primary-color-7);
  font-size: var(--td-font-size-s, 24rpx);
}

.store-info {
  display: flex;
  align-items: center;
}

.store-icon {
  width: 80rpx;
  height: 80rpx;
  background-color: var(--td-brand-color, @primary-color-7);
  border-radius: var(--td-radius-default, 12rpx);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: var(--td-spacer-1, 24rpx);
  color: var(--td-text-color-anti, @font-white-1);
  font-size: var(--td-font-size-s, 24rpx);
}

.store-details {
  flex: 1;
}

.store-name {
  font-size: var(--td-font-size-m, 32rpx);
  font-weight: 600;
  margin-bottom: 8rpx;
  color: var(--td-text-color-primary, @font-gray-1);
  font-family: var(--td-font-family-medium, PingFang SC, Microsoft YaHei, Arial Medium);
}

.store-address {
  font-size: var(--td-font-size-s, 24rpx);
  color: var(--td-text-color-secondary, @font-gray-2);
}

/* 配送方式容器 */
.delivery-options {
  display: flex;
  gap: var(--td-spacer-1, 24rpx);
}

/* 配送选项样式 */
.delivery-option {
  flex: 1;
  padding: var(--td-spacer-2, 32rpx);
  border: 2rpx solid var(--td-border-level-1-color, @gray-color-3);
  border-radius: var(--td-radius-extraLarge, 24rpx);
  transition: all var(--td-anim-duration-base, 0.2s) var(--td-anim-time-fn-easing, cubic-bezier(0.38, 0, 0.24, 1));
  position: relative;
}

.delivery-option.selected {
  border-color: var(--td-brand-color, @primary-color-7);
  background-color: var(--td-brand-color-light, @primary-color-1);
  box-shadow: var(--td-shadow-1, 0 1px 10px rgba(0, 0, 0, 5%), 0 4px 5px rgba(0, 0, 0, 8%), 0 2px 4px -1px rgba(0, 0, 0, 12%));
}

/* 选项头部 */
.option-header {
  display: flex;
  align-items: center;
  margin-bottom: var(--td-spacer, 16rpx);
}

.option-icon {
  flex: 1;
  width: 48rpx;
  height: 48rpx;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--td-brand-color, @primary-color-7);
  font-size: var(--td-font-size-m, 32rpx);
}

.option-title {
  font-size: var(--td-font-size-m, 32rpx);
  color: var(--td-text-color-primary, @font-gray-1);
  font-weight: 600;
  flex: 1;
}

.option-price {
  font-size: var(--td-font-size-m, 32rpx);
  font-weight: 600;
  color: var(--td-text-color-primary, @font-gray-1);
}

.option-desc {
  font-size: var(--td-font-size-s, 24rpx);
  color: var(--td-text-color-secondary, @font-gray-2);
}

/* 配送地址样式 */
.delivery-address {
  padding: var(--td-spacer-1, 24rpx);
  background: var(--td-bg-color-secondarycontainer, @gray-color-1);
  border-radius: var(--td-radius-default, 12rpx);
  border: 1rpx solid var(--td-border-level-1-color, @gray-color-3);
}

.address-info {
  margin-bottom: var(--td-spacer, 16rpx);
}

.recipient {
  display: flex;
  align-items: center;
  margin-bottom: 8rpx;
}

.recipient-name {
  font-size: var(--td-font-size-base, 28rpx);
  color: var(--td-text-color-primary, @font-gray-1);
  font-weight: 600;
  margin-right: var(--td-spacer, 16rpx);
}

.recipient-phone {
  font-size: var(--td-font-size-s, 24rpx);
  color: var(--td-text-color-secondary, @font-gray-2);
}

.address-detail {
  font-size: var(--td-font-size-s, 24rpx);
  color: var(--td-text-color-primary, @font-gray-1);
  line-height: 1.4;
}

.address-action {
  color: var(--td-brand-color, @primary-color-7);
  font-size: var(--td-font-size-s, 24rpx);
  white-space: nowrap;
  padding: 8rpx 16rpx;
  border-radius: var(--td-radius-small, 6rpx);
  border: 1rpx solid var(--td-brand-color, @primary-color-7);
  text-align: center;
  transition: all var(--td-anim-duration-base, 0.2s) var(--td-anim-time-fn-easing, cubic-bezier(0.38, 0, 0.24, 1));
}

.address-action:active {
  background: var(--td-brand-color-light, @primary-color-1);
}

/* 无地址提示样式 */
.no-address {
  padding: var(--td-spacer-1, 24rpx);
  background: var(--td-bg-color-secondarycontainer, @gray-color-1);
  border-radius: var(--td-radius-default, 12rpx);
  border: 1rpx dashed var(--td-border-level-1-color, @gray-color-3);
  text-align: center;
}

.no-address-text {
  font-size: var(--td-font-size-s, 24rpx);
  color: var(--td-text-color-secondary, @font-gray-2);
  margin-bottom: var(--td-spacer, 16rpx);
}

/* 自提信息样式 */
.pickup-info {
  padding: var(--td-spacer-1, 24rpx);
  background: var(--td-bg-color-secondarycontainer, @gray-color-1);
  border-radius: var(--td-radius-default, 12rpx);
  border: 1rpx solid var(--td-border-level-1-color, @gray-color-3);
}

.pickup-address {
  margin-bottom: var(--td-spacer-1, 24rpx);
}

.pickup-store {
  font-size: var(--td-font-size-base, 28rpx);
  color: var(--td-text-color-primary, @font-gray-1);
  font-weight: 600;
  margin-bottom: 8rpx;
}

.pickup-detail {
  font-size: var(--td-font-size-s, 24rpx);
  color: var(--td-text-color-primary, @font-gray-1);
  line-height: 1.4;
}

.pickup-time {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.time-title {
  font-size: var(--td-font-size-s, 24rpx);
  color: var(--td-text-color-secondary, @font-gray-2);
}

.time-detail {
  font-size: var(--td-font-size-s, 24rpx);
  color: var(--td-text-color-primary, @font-gray-1);
  font-weight: 600;
}

.product-item {
  display: flex;
  margin-bottom: var(--td-spacer-2, 32rpx);
}

.product-image {
  width: 160rpx;
  height: 160rpx;
  border-radius: var(--td-radius-default, 12rpx);
  background-color: var(--td-bg-color-component, @gray-color-3);
  margin-right: var(--td-spacer-1, 24rpx);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--td-text-color-placeholder, @font-gray-3);
  font-size: var(--td-font-size-xs, 20rpx);
}

.product-details {
  flex: 1;
}

.product-name {
  font-size: var(--td-font-size-m, 32rpx);
  margin-bottom: 12rpx;
  color: var(--td-text-color-primary, @font-gray-1);
}

.product-spec {
  font-size: var(--td-font-size-s, 24rpx);
  color: var(--td-text-color-secondary, @font-gray-2);
  margin-bottom: 12rpx;
}

.product-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price {
  font-size: var(--td-font-size-m, 32rpx);
  font-weight: 600;
  color: var(--td-text-color-primary, @font-gray-1);
}

.quantity {
  font-size: var(--td-font-size-s, 24rpx);
  color: var(--td-text-color-secondary, @font-gray-2);
}

.coupon-item {
  display: flex;
  align-items: center;
  padding: var(--td-spacer-1, 24rpx) 0;
}

.coupon-icon {
  width: 48rpx;
  height: 48rpx;
  margin-right: var(--td-spacer-1, 24rpx);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--td-error-color, @error-color-6);
  font-size: var(--td-font-size-m, 32rpx);
}

.coupon-content {
  flex: 1;
}

.coupon-title {
  font-size: var(--td-font-size-m, 32rpx);
  margin-bottom: 8rpx;
  color: var(--td-text-color-primary, @font-gray-1);
}

.coupon-desc {
  font-size: var(--td-font-size-s, 24rpx);
  color: var(--td-text-color-secondary, @font-gray-2);
}

.coupon-value {
  font-size: var(--td-font-size-m, 32rpx);
  font-weight: 600;
  color: var(--td-error-color, @error-color-6);
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16rpx 0;
}

.price-label {
  font-size: var(--td-font-size-s, 24rpx);
  color: var(--td-text-color-secondary, @font-gray-2);
}

.price-value {
  font-size: var(--td-font-size-s, 24rpx);
  color: var(--td-text-color-primary, @font-gray-1);
}

.total-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--td-spacer-1, 24rpx) 0;
  border-top: 1rpx solid var(--td-border-level-1-color, @gray-color-3);
  margin-top: 16rpx;
}

.total-label {
  font-size: var(--td-font-size-m, 32rpx);
  font-weight: 600;
  color: var(--td-text-color-primary, @font-gray-1);
  font-family: var(--td-font-family-medium, PingFang SC, Microsoft YaHei, Arial Medium);
}

.total-value {
  font-size: var(--td-font-size-l, 36rpx);
  font-weight: 700;
  color: var(--td-error-color, @error-color-6);
}

.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--td-bg-color-container, @font-white-1);
  padding: var(--td-spacer-2, 32rpx);
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--td-shadow-1, 0 1px 10px rgba(0, 0, 0, 5%), 0 4px 5px rgba(0, 0, 0, 8%), 0 2px 4px -1px rgba(0, 0, 0, 12%));
}

.footer-price {
  flex: 1;
}

.footer-total {
  font-size: var(--td-font-size-m, 32rpx);
  font-weight: 600;
  color: var(--td-text-color-primary, @font-gray-1);
  font-family: var(--td-font-family-medium, PingFang SC, Microsoft YaHei, Arial Medium);
}

.footer-amount {
  font-size: var(--td-font-size-xl, 40rpx);
  font-weight: 700;
  color: var(--td-error-color, @error-color-6);
}

.submit-btn {
  background: var(--td-brand-color, @primary-color-7);
  color: var(--td-text-color-anti, @font-white-1);
  border: none;
  border-radius: var(--td-radius-round, 999px);
  padding: 20rpx 48rpx;
  font-size: var(--td-font-size-m, 32rpx);
  font-weight: 600;
  line-height: normal;
  transition: background-color var(--td-anim-duration-base, 0.2s) var(--td-anim-time-fn-easing, cubic-bezier(0.38, 0, 0.24, 1));
}

.submit-btn:active {
  background: var(--td-brand-color-active, @primary-color-8);
}

.submit-btn::after {
  border: none;
}